package edu.sctu.xialei.May.day20150527one;

/**
 * Created by Administrator on 5/27/2015.
 */
public class Call {

    public static void main(String[] args) {

//       餐厅InFo赋值
        DiningRoom diningRoom;

        DiningAllInfo setDiningAllInfo = new DiningAllInfo();

        diningRoom = setDiningAllInfo.setInfo();


        System.out.println("\n\n*****下课了，某个学生去吃饭了*****\n\n");

//       进入餐厅的学生信息录入
        Student student;

        StudentAllInfo studentAllInfo = new StudentAllInfo();

        student = studentAllInfo.setStudent();

//        学生选择窗口
        DishesWindow dishesWindow;

        dishesWindow = student.chooseWindow(diningRoom);

//        学生选择并购买菜品
        float totalMoney = student.chooseDishes(dishesWindow);

        student.payForDish(totalMoney);

//        选择座位坐下
        student.chooseSeat(diningRoom);

//        关于该生信息
        studentAllInfo.printStudentInfo(student);

    }
}
